word = "One is always on a strange road, watching strange scenery and listening to strange music. Then one day, you will find that the things you try hard to forget are already gone. "
word = word.replace(',','').replace('.','')
word = word.split()
print(word)
setword = set(word)
for i in setword:
    count = word.count(i)
    print(i,'出现次数',count)
